package jdbcConnect;

import java.sql.*;
import java.util.ResourceBundle;

public class JDBC {

    //1.注册驱动
    ResourceBundle resourceBundle=ResourceBundle.getBundle("jdbc");
    String driver=resourceBundle.getString("driver");
    String url = resourceBundle.getString("url");
    String user = resourceBundle.getString("user");
    String password = resourceBundle.getString("password");


    public  Connection JDBCConnectvoid() throws SQLException {
        Connection connection=null;
        connection= DriverManager.getConnection(url, user, password);
        return connection;
    }

}
